<html>
<head><meta charset="utf-8"><title>Windows Bindings Generated from Metadata · t-compiler/windows · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/index.html">t-compiler/windows</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html">Windows Bindings Generated from Metadata</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223545377"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223545377" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223545377">(Jan 21 2021 at 17:50)</a>:</h4>
<p>Announcement: Microsoft has been working on creating bindings to the entire Windows API surface from metadata. It's still early days but this is a huge step to making it easier to maintain the way the entire Rust community interacts with Windows. <br>
Blog: <a href="https://kennykerr.ca/2021/01/21/rust-for-windows/">https://kennykerr.ca/2021/01/21/rust-for-windows/</a> <br>
Repo: <a href="https://github.com/microsoft/windows-rs">https://github.com/microsoft/windows-rs</a><br>
About Metadata: <a href="https://blogs.windows.com/windowsdeveloper/2021/01/20/making-win32-apis-more-accessible-to-more-languages/">https://blogs.windows.com/windowsdeveloper/2021/01/20/making-win32-apis-more-accessible-to-more-languages/</a></p>



<a name="223549915"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223549915" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223549915">(Jan 21 2021 at 18:23)</a>:</h4>
<p>Should I port from winapi crate? Is so are there tutorials?</p>



<a name="223566819"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223566819" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223566819">(Jan 21 2021 at 20:35)</a>:</h4>
<p>Porting is certainly possible though there are still some rough edges and some APIs don’t get translated correctly. With that in mind if you have the time, it’d be very helpful to have some people start porting over to help us find bugs and other issues. <br>
Docs is on the top of my list. There are some example repos that can help: <a href="https://github.com/robmikh/minesweeper-rs">https://github.com/robmikh/minesweeper-rs</a></p>



<a name="223567284"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223567284" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223567284">(Jan 21 2021 at 20:38)</a>:</h4>
<p>Is it possible to pregenerate all the bindings?</p>



<a name="223567305"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223567305" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223567305">(Jan 21 2021 at 20:39)</a>:</h4>
<p>(Rather than naming specific ones?)</p>



<a name="223582215"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223582215" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223582215">(Jan 21 2021 at 22:49)</a>:</h4>
<p>Also interested. build scripts are ew, and avoiding them gives nice benefits all around.</p>



<a name="223582321"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223582321" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223582321">(Jan 21 2021 at 22:50)</a>:</h4>
<p>(/me said this, and now stares at the screen thinking what exact example would they give if asked for one)</p>



<a name="223622445"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223622445" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223622445">(Jan 22 2021 at 10:08)</a>:</h4>
<p>Of course pre-generation is possible. I've been arguing for that with the main author of the crate without success so far. This is not the first request for this since the announcement. I will open an issue on the repo where we can discuss this.</p>



<a name="223623261"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Windows%20Bindings%20Generated%20from%20Metadata/near/223623261" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Windows.20Bindings.20Generated.20from.20Metadata.html#223623261">(Jan 22 2021 at 10:16)</a>:</h4>
<p><a href="https://github.com/microsoft/windows-rs/issues/431">https://github.com/microsoft/windows-rs/issues/431</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>